// 构建出险率查询参数

export default (ctx, next) =>{
    

    // 车型数据 , 订单数据
    let {currentCarModel, orderData} = ctx.store['state']['carFormStore'];
    
    // 请求参数
    ctx.params = {
        plateNo: orderData.DEVplateNo,
        engineNo: orderData.DEVengineNo,
        vin: orderData.DEVvin,
        registerDate: orderData.DEVregisterDate,
        engineCapability: currentCarModel.engineCapability,
        tonnages: currentCarModel.tonnages,
        seats: currentCarModel.seats,
        weight: currentCarModel.weight,
        price: currentCarModel.price,
        vehicleId: currentCarModel.vehicleId,
        vehicleTypeCode: orderData.DEVcategory[1],
        isCommercialUsage: orderData.DEVisCommercialUsage,
        jqStartDate: orderData.DEVjqStartDate,
        syStartDate: orderData.DEVsyStartDate,
        backendFlag: orderData.DEVsyViCompany || orderData.DEVjqViCompany,
    };

    
    next()
}